//像 common、var 这种没有被引用过的根本不应该被编译；
fis.config.set("static", "assets");
fis.config.merge({
    project: {
        //tpls 为什么过滤不掉
        exclude: ["node_modules", "package.json", "package-lock.json", "*.txt", "*.md", "src/less/common", "/node", "util", "/tpls"]
    },
    settings: {
        postprocessor: {
            jswrapper: {  //用AMD 包裹js 代码的插件启用
                type: "amd",
                wrapAll: true
            }
        }
    },
    modules: {
        parser: {
            less: ["less"]
        }
    },
    roadmap: {
        path: [
            {
                reg: /\/src\/less\/([^\/]+\.less)/,  //忽略 src/less/common 目录下的less
                release: "./${static}/css/$1",
                useDomain: false
            },
            {
                reg: "/pages/*.js"
                // usePostprocessor: true,
                // isMod: true
            }
        ],
        ext: {
            less: "css"
        },
        domain: "http://www.baidu.com"
    }
})

fis.config.merge({
    deploy: {
        remote: {
            receiver: "http://127.0.0.1:3000/release",
            from: "/images",  // 构建之后的目录中的文件才上传
            to: "/home/fis/www",
        }
    }
})
//编译后的 less 文件不产出
// fis.config.get("roadmap.path").push({
//     reg: "./src/*.css",
//     release: "./src/css/$&"
// })

// fis.config.set("roadmap.ext",{
//     less: "css"
// })